using System;
using System.Collections.Generic;
using System.Text;
using Bots;

namespace Sample
{
    [Serializable]
    public class Link : DomainObject
    {
        private string desc;
        private string title;
        private string url;
        private DateTime createDateTime;

        public Link():base() { 
        
        }

        public Link(long id) : base(id) { }
        
        public static Link Create(string title, string url, string desc) {
            Link link = new Link();
            link.title = title;
            link.url = url;
            link.desc = desc;
            link.createDateTime = DateTime.Now;
            return link;
        }


        public DateTime CreateDateTime {
            get {
                return this.createDateTime;
            }
            set {
                this.createDateTime = value;
            }
        }

        public String Title
        {
            get
            {
                return title;
            }
            set
            {
                title = value;
            }
        }

        public String Url
        {
            get
            {
                return url;
            }
            set
            {
                url = value;
            }
        }

        public String Description
        {
            get
            {
                return desc;
            }
            set
            {
                desc = value;
            }
        }

   
    }
}
